package com.nana.petadventure.app
{
	import com.nana.framework.base.App;
	import com.nana.framework.net.DataEvent;
	import com.nana.framework.ui.manager.UIManager;
	import com.nana.petadventure.net.DataProxy;

	public class AppController
	{
		public function start():void{

//			UIManager.getLanguageManager().initialize(Dll.getInstance().getXMLDataByName("LanguageContext"));
//			StatisticsProxy.getInstance().sendActionStatistics(StatisticsProxy.loadingComplete);
//			var _local1:Object = Dll.getInstance().getDDDByName("listsConfig")["stream"];
//			Platform.getInstance().setStreamConfig(_local1);
//			Platform.getInstance().setStreamFolder(Dll.getInstance().outFloder);
//			Platform.getInstance().setTaskIconFolder(Dll.getInstance().outFloder);
//			Platform.getInstance().setImageFolder(Dll.getInstance().outFloder);
//			Platform.getInstance().startAddicted(App.appStage);
			AppControllerList.getInstance().gameController.init();

//			UIManager.getToolTipManager().registerToolTip(ToolTip);

//			DataProxy.getInstance().addEventListener(DataProxy.GET_SERVER_TIME, this.getServerTime);
//			DataProxy.getInstance().send("Scene.init");
		}
		
		private function getServerTime(event:DataEvent):void{
			var time:Number = Number(event.data);
			App.stime = time;
		}
	}
}